package com.edu.gcu.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.edu.gcu.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.Date;

/**
 * 积分日志记录 sys_integral_log
 *
 * @author luomang
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysIntegralLog extends BaseEntity {
    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 积分日志ID
     */
    @TableId(value = "integral_log_id", type = IdType.AUTO)
    private Long integralLogId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 执行结果（0增加 1减少）
     */
    @TableField(value = "oper")
    private String oper;

    /**
     * 执行时间
     */
    @TableField(value = "time")
    private Date time;


    /**
     * 积分数量
     */
    @TableField(value = "num")
    private Integer num;
}
